//
//  LDTableViewCell.m
//  CoreData
//
//  Created by dllo on 15/11/20.
//  Copyright (c) 2015年 蓝鸥3g学院. All rights reserved.
//

#import "LDTableViewCell.h"

@implementation LDTableViewCell

- (instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier {
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self) {
        [self createCell];
    }
    return self;
}


- (void)createCell {
    self.upLabel = [[UILabel alloc] init];
    [self.contentView addSubview:self.upLabel];
    self.upLabel.backgroundColor = [UIColor yellowColor];
    
    self.midLabel = [[UILabel alloc] init];
    [self.contentView addSubview:self.midLabel];
    self.midLabel.backgroundColor = [UIColor yellowColor];
    
    self.downLabel = [[UILabel alloc] init];
    [self.contentView addSubview:self.downLabel];
    self.downLabel.backgroundColor = [UIColor yellowColor];
    
}


- (void)layoutSubviews {
    [super layoutSubviews];
    self.upLabel.frame = CGRectMake(5, 5, 150, 30);
    self.downLabel.frame = CGRectMake(5, 40, 150, 30);
    self.midLabel.frame = CGRectMake(200, 22, 130, 30);
}

- (void)awakeFromNib {
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
